Repository navigation
Conversation
This was referenced Nov 1, 2026
…ngency-labs#5426) Each kind on a sheet writes out the same add, find by halves, cap, order and check loop. ById holds those, so a kind's own file holds only its own rules, and the file's bytes don't change: it saves as the plain list. Views and dimensions stay on their own lists for now, since other work is on them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CamWight
force-pushed
the
drawing-by-id-5426
branch
from
November 3, 2026 13:06
7ce4d5d to
a33778d
Compare
Contributor
Author
|
Carried in by #10926: its squash into |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Nothing changes for the person using SolidCraft, and design files are the same bytes. Each kind of record on a drawing (balloons, and soon sheet images) wrote out the same code to add, find, order and check its records. That code is now one list type, and balloons use it first.
Part of #5425, into
drawings: one list type for a drawing's records of one kind. Sheet images (the next PR) needs two more of these lists, so the shared part goes first as its own small change.Changes a default: no
What it does
Each kind of record on a sheet writes out the same add, find by halves, cap, order and check loop.
ById<T>holds those, so a kind's own file keeps only its own rules. Balloons move onto it first.The file's bytes don't change: a
ByIdsaves as the plain list it replaces. Views and dimensions stay on their own lists for now, since other work is on them.Pictures
No visible change in the app: this only moves code behind existing commands.
Tests
by_id_tests.rs(new, three tests): records go where their ids put them and are found there, a file holds the plain list, and the rules name the kind and the record.Planted faults: 6 of 6 caught, then a clean run: add leaves its records unsorted, a file's order is kept,
index_oftakes the first, no cap on a list, a list out of order passes, a record's rule isn't run. They ran with the images commit on top, so some were also caught by its tests.What no test reaches
Views and dimensions, which don't use
ByIdyet.Validation
by_idtests pass, and clippy onsolidcraft-docwith all targets is clean.Integration status
Based on
drawings9b73ec8.Refs #5425, #860